Ext.define('App.view.news.List', {
    extend: "Ext.List",
    xtype: 'newsList',
    id: "newsList",
    
    config: {
        title: '中考新闻',
		fullscreen: true,
		loadingText: Global.loadingText,
		autoDestroy: false,
        emptyText: Global.emptyText,
        plugins: [{
            xclass: 'Ext.plugin.ListPaging',
            loadMoreText: '加载更多'
        }],
        itemTpl: [
			 '<table>',
			 	'<tr>',
					'<td>',
						'<span class="legislator-list-item">',
                			'<tpl if="subType == 01"><span class="legislator-pic" style="background-image: url(resources/img/news_1.png);"></span></tpl>',
							'<tpl if="subType == 02"><span class="legislator-pic" style="background-image: url(resources/img/news_2.png);"></span></tpl>',
							'<tpl if="subType == 03"><span class="legislator-pic" style="background-image: url(resources/img/news_3.png);"></span></tpl>',
			 			'</span>',
					'</td>',
					'<td>',
						'<span class="legislator-list-item">',
                			'{title}',
             			'</span>',
					'</td>',
				'</tr>',
			 '</table>'
		]
    }
});
